Skip to content

ApacheAuth: Fix automatically initiated SSO on login page#10752

Merged
mjansenDatabay merged 3 commits intoILIAS-eLearning:release_9from
mjansenDatabay:hotfix/9/apache-auto-sso
Jan 16, 2026
Merged

ApacheAuth: Fix automatically initiated SSO on login page#10752
mjansenDatabay merged 3 commits intoILIAS-eLearning:release_9from
mjansenDatabay:hotfix/9/apache-auto-sso

Conversation

@mjansenDatabay
Copy link
Copy Markdown
Contributor

@mjansenDatabay mjansenDatabay commented Dec 17, 2025

This commit suggests ignoring the force_login
command in the tryAuthenticationOnLoginPage function.

If the public area is enabled, and ILIAS detects
that the user has no valid ILIAS session and access
to the requested resource, an HTTP redirect to the
login view with a cmd=force_login query parameter
will be initiated. This currently leads to a problem
where the automatically initiated "Apache Authentication"
Single Sign-On will not be triggered, even if configured
this way.

Side effect of this PR: With this change, requesting the login page with
an enabled "Apache Authentication" will only be possible
without triggering the automatically initiated Single Sign-On,
if passed_sso=1 is given in the query parameters (no change was
required to achieve this behaviour).


Commit one has to be picked to release_10 as well, commit two and three have to be be picked to all maintained branches.

@mjansenDatabay mjansenDatabay added bugfix improvement php Pull requests that update Php code labels Dec 17, 2025
@mjansenDatabay mjansenDatabay force-pushed the hotfix/9/apache-auto-sso branch from 2c453b3 to 85afa42 Compare January 15, 2026 08:38
@mjansenDatabay mjansenDatabay changed the title ApacheAuth: Ignore force_login command ApacheAuth: Fix automatically initiated SSO on login page Jan 15, 2026
This commit suggests ignoring the `force_login`
command in the `tryAuthenticationOnLoginPage` function.

If the public area is **enabled**, and ILIAS detects
that the user has **no valid ILIAS session and access**
to the requested resource, an HTTP redirect to the
login view with a `cmd=force_login` query parameter
will be initiated. This currently leads to a problem
where the automatically initiated "Apache Authentication"
Single Sign-On will **not** be triggered, even if configured
this way.

Effect: With this change, requesting the login page with
an **enabled** "Apache Authentication" will only be possible
**without** triggering the automatically initiated Single Sign-On,
if `passed_sso=1` is given in the query parameters (no change was
required to achieve this behaviour).
@mjansenDatabay mjansenDatabay force-pushed the hotfix/9/apache-auto-sso branch from 85afa42 to 59f685c Compare January 16, 2026 11:32
@mjansenDatabay mjansenDatabay merged commit e7df892 into ILIAS-eLearning:release_9 Jan 16, 2026
1 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bugfix improvement php Pull requests that update Php code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants